/**
 * 
 * @author JackChu
 * @version 2012-6-13 下午11:02:45
 */
package jjk.model
{

	public class Node
	{
		private var _x:int;
		private var _y:int;
		
		private var _g:int;
		private var _h:int;
		private var _f:int;
		private var _parent:Node;
		
		
		private var _crossable:Boolean;
		
		private var _color:int;
		
		public function Node(x:int,y:int,crossable:Boolean=true)
		{
			this._x = x;
			this._y = y;
			this._crossable = crossable;
		}

		public function get parent():Node
		{
			return _parent;
		}

		public function set parent(value:Node):void
		{
			_parent = value;
		}

		public function get f():int
		{
			return _f;
		}

		public function set f(value:int):void
		{
			_f = value;
		}

		public function get h():int
		{
			return _h;
		}

		public function set h(value:int):void
		{
			_h = value;
		}

		public function get g():int
		{
			return _g;
		}

		public function set g(value:int):void
		{
			_g = value;
		}

		public function get crossable():Boolean
		{
			return _crossable;
		}

		public function set crossable(value:Boolean):void
		{
			_crossable = value;
		}

		public function get y():int
		{
			return _y;
		}

		public function set y(value:int):void
		{
			_y = value;
		}

		public function get x():int
		{
			return _x;
		}

		public function set x(value:int):void
		{
			_x = value;
		}

		public function get color():int
		{
			return _color;
		}

		public function set color(value:int):void
		{
			_color = value;
		}
		
		public function toString():void
		{
			trace("x ",x," y ",y," g ",g," h ",h," f ",f);
		}

	}
}